#ifndef MODELCOLLECTIONS_H
#define MODELCOLLECTIONS_H

#include <QAbstractListModel>
#include <QDebug>
#include "backendfiles/listmaintence.h"
class ModelCollections : public QAbstractListModel
{
    Q_OBJECT
public:
    explicit ModelCollections(QObject *parent = 0);
    QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
    int rowCount(const QModelIndex &parent = QModelIndex()) const;  
private:
      QList<QString> collList;
    enum Roles {
      CollName = Qt::UserRole + 1,

    };
    QHash<int, QByteArray> roleNames() const;
signals:

public slots:
    void addColl(const QString &);
    void remColl(const QString &);
    void chosen(const QString &);
};

#endif // MODELCOLLECTIONS_H
